﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Net;
using System.Net.Mail;
using System.Data;
using System.Data.SqlClient;
using System.Web.Configuration;

/// <summary>
/// Summary description for Utils
/// </summary>
namespace Basic
{
    public class Replace
    {
        public String ReplaceLanguage(String url, String ordinal, String replace)
        {
            return url.Replace(ordinal, replace);
        }
        public void SendMail(string emailadress, string content)
        {
            MailMessage mm = new MailMessage("pvtuan.cntt@gmail.com", emailadress);
            mm.Subject = "Tài khoản của bạn trên Môi Giới VTB website";
            mm.Body = content;
            mm.IsBodyHtml = true;
            SmtpClient smtp = new SmtpClient();
            smtp.Send(mm);
        }
    }
}